package com.black.apartment.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.black.common.annotation.Excel;
import com.black.common.core.domain.BaseEntity;

/**
 * 房间管理对象 tb_rooms
 * 
 * @author kuan
 * @date 2024-10-08
 */
public class Rooms extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房间id */
    private Long id;

    /** 公寓id */
    @Excel(name = "公寓id")
    private Long apartmentId;

    /** 房间面积 */
    @Excel(name = "房间面积")
    private BigDecimal area;

    /** 房间租金 */
    @Excel(name = "房间租金")
    private BigDecimal rent;

    /** 房间状态 */
    @Excel(name = "房间状态")
    private String status;

    /** 房间图片 */
    @Excel(name = "房间图片")
    private String imagePath;

    /** 创建时间 */
    private Date createdAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 房间备注 */
    @Excel(name = "房间备注")
    private String description;

    /** 房屋属性信息信息 */
    private List<RoomAttributes> roomAttributesList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setApartmentId(Long apartmentId) 
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId() 
    {
        return apartmentId;
    }
    public void setArea(BigDecimal area) 
    {
        this.area = area;
    }

    public BigDecimal getArea() 
    {
        return area;
    }
    public void setRent(BigDecimal rent) 
    {
        this.rent = rent;
    }

    public BigDecimal getRent() 
    {
        return rent;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setImagePath(String imagePath) 
    {
        this.imagePath = imagePath;
    }

    public String getImagePath() 
    {
        return imagePath;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public List<RoomAttributes> getRoomAttributesList()
    {
        return roomAttributesList;
    }

    public void setRoomAttributesList(List<RoomAttributes> roomAttributesList)
    {
        this.roomAttributesList = roomAttributesList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("apartmentId", getApartmentId())
            .append("area", getArea())
            .append("rent", getRent())
            .append("status", getStatus())
            .append("imagePath", getImagePath())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("description", getDescription())
            .append("roomAttributesList", getRoomAttributesList())
            .toString();
    }
}
